package com.le.edu.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 课时表
 *
 * @TableName t_section
 */
@TableName(value = "t_section")
@Data
public class Section extends BaseEntity implements Serializable {
    /**
     * 课时id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long sectionId;

    private Long courseId;

    private Long chapterId;

    /**
     * 视频id
     */
    private Long videoId;

    /**
     * 课时名称
     */
    private String title;

    /**
     * 排序字段
     */
    private Integer sort;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}